package com.lagou.task18;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ThreadPoolTest {
    public static void main(String[] args) {
        //创建线程池
        ExecutorService executorService = Executors.newFixedThreadPool(10);
        //往线程池里添加线程
        executorService.submit(new ThreadCallableTest());
        //关闭线程池
        executorService.shutdown();
    }
}
